home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / config / checkconfig.c next >
C/C++ Source or Header  |  1996-07-23  |  2KB  |  67 lines

  1.  
  2. #include "config.p"
  3.  
  4. void checkconfig()
  5. {
  6.     if (logdefaults())                      /* are we logging defaults ? */
  7.     {
  8.     if (cb_mode == mode_callback)       /* if so, different for callback */
  9.         log                             /* and dial-in modes             */
  10.         (
  11.         log_off,                    /* not severe, but asked for */
  12.         "\n"
  13.         "\tmode:                        callback\n"
  14.         "\tthe default modem-ttyline:   %s\n"
  15.         "\tauxiliary callback files in: %s\n"
  16.         "\tlogfilename:                 %s\n"
  17.         "\tdial-logfilename:            %s\n"
  18.         "\tpanic logfilename:           %s\n"
  19.         "\tlog type:                    %s\n"
  20.         "\tmgetty configuration file:   %s\n"
  21.         "\tlogin program:               %s\n"
  22.         "\temail address:               %s\n"
  23.         "\tnumber of callback retries:  %d\n"
  24.         "\tmaximum callback time:       %d sec.\n"
  25.         "\tusing 'cb %swho where' to call users.\n"
  26.         "\t'cb list' %s show phonenumbers.\n"
  27.         , get_ttyline(0)
  28.         , base_path
  29.          , get_logfilename()
  30.         , get_diallogfilename()
  31.         , get_panicfilename()
  32.                 , get_logtypestring()
  33.         , mgetty_path
  34.         , login_program
  35.         , email_address ? email_address : "not used"
  36.         , ntries
  37.                 , get_maxage()
  38.         , call ? "call " : ""
  39.                 , show_phonenumbers ? "will" : "won't"
  40.         );
  41.     else
  42.         log
  43.         (
  44.         log_off,
  45.         "\n"
  46.         "\tmode:                        dial-in\n"
  47.         "\tthe default modem-ttyline:   %s\n"
  48.         "\tauxiliary callback files in: %s\n"
  49.         "\tlogfilename:                 %s\n"
  50.         "\tpanic logfilename:           %s\n"
  51.         "\tlog type:                    %s\n"
  52.         "\tmgetty configuration file:   %s\n"
  53.         "\temail address:               %s\n"
  54.         , get_ttyline(0)
  55.         , base_path
  56.         , get_logfilename()
  57.         , get_panicfilename()
  58.                 , get_logtypestring()
  59.         , mgetty_path
  60.         , email_address ? email_address : "not used"
  61.         );
  62.     }
  63.  
  64.     if (!get_ttyline(0))
  65.     error("default tty-line missing");
  66. }
  67.